package com.lucene.blog.db.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.lucene.blog.bean.Link;

public interface LinkService {
	// 获取友情链接
	public List<Link> getLinkData() throws SQLException;
	
	// 分页查询友情链接
	public List<Link> getLinkDataList(Map<String, Object> map) throws SQLException;
	
	// 获取总记录数
	public Long getTotal(Map<String, Object> map) throws SQLException;
	
	// 添加友情链接
	public Integer addLink(Link link) throws SQLException;
	
	// 更新友情链接
	public Integer updateLink(Link link) throws SQLException;
	
	public Integer deleteLinkById(Integer id) throws SQLException;
}
